<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=cn-gb">
		<link href="css/style.css" rel="stylesheet" type="text/css">
		<title>注册（添加）新用户</title>
		<script type="text/javascript">
	function userAction() {
		var d = document.forms[0];
		d.action = "register";
		d.submit();
	}
</script>
		<style type="text/css">
.errorMessage {
	font-size: 12px;
	color: red;
}
</style>
	</head>
	<body>
		<center>
			<h2>
				注册（添加）新用户
			</h2>
		</center>
		<center>
			<font color="red"> ${requestScope.addUserName}</font>
			<s:form method="post">
				<table>
					<tr>
						<td>
							<s:textfield label="用户名" name="user.name" />
						</td>
					</tr>
					<tr>
						<td>
							<s:password label="密码" name="user.password" />
						</td>
					</tr>
					<tr align="center">
						<td colspan="2">

							<!-- input type="image" src="../images/tj.gif" onclick="userAction();" />  -->
							<input type="button" value="保存" name="Save" onclick="userAction();" />

							<!-- input type="image" src="../images/cz.gif" onclick="" />  -->
							<input type="reset"  value="重置" name="Reset" />
							<input type="button" value="返回" name="Back" onclick="history.go(-1);" />
						</td>
					</tr>
				</table>
			</s:form>
		</center>
	</body>
</html>